package com.qm.ms005.controller;

import com.qm.ms005.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.HandlerAdapter;

import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.locks.ReentrantLock;

@RestController
//@Scope("prototype")
public class FeignController {


    @Autowired
    TestService testService;

    @RequestMapping("/")
    public String getNameN(String a,String b,String c){


        testService.add();
        //System.out.println(a);
        //System.out.println(b);
        //System.out.println(c);


       return "5555555555555";
    }

    @GetMapping("/getName")
    public String getName(){
        System.out.println(333333333);

        //testService.dosome(1,"3");

        return "33333";
    }
}
